package interface_;

/**
 * @description:
 * @Author yyp
 * @time
 */
public class InterfaceExercise02 {
    public static void main(String[] args) {
        InterfaceExercise02C c = new InterfaceExercise02C();
        c.pX();
        /**
         * Reference to 'x' is ambiguous, both 'InterfaceExercise02B.x' and 'InterfaceExercise02A.x' match
         * c.x;
         */

    }
}

interface InterfaceExercise02A{
    int x = 0;
}
class InterfaceExercise02B{
    int x = 1;
}
class InterfaceExercise02C extends InterfaceExercise02B implements InterfaceExercise02A{
    public void pX(){
        System.out.println(InterfaceExercise02A.x);
        System.out.println(super.x);
    }
}
